package cn.codeforfun.controller;

import cn.codeforfun.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Package cn.codeforfun.controller
 * Project springcloud-practice
 * Author Bin.Wang
 * Created on 2017/4/13 17:48
 * version 1.0.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
  @Autowired
  private FeignService feignService;

  @RequestMapping(value = "/add", method = RequestMethod.GET)
  public String add(@RequestParam("a") String a, @RequestParam("b") String b) {
    return feignService.add(a, b);
  }
}
